package com.leesche.zcsp.node.web.dao;

import com.leesche.zcsp.node.web.model.SysUserPlace;
import com.leesche.zcsp.node.web.model.SysUserPlaceCriteria;
import com.leesche.zcsp.node.web.model.SysUserPlaceKey;
import com.leesche.zcsp.node.web.service.impl.data.read.QuerySysRoleModuleCondition;
import com.leesche.zcsp.node.web.service.impl.data.read.QuerySysUserPlaceCondition;
import com.leesche.zcsp.node.web.service.impl.data.read.SysUserPlaceDto;

import java.util.List;

public interface SysUserPlaceDao extends
        BaseDao<SysUserPlace, SysUserPlaceCriteria, SysUserPlaceDto, QuerySysUserPlaceCondition, SysUserPlaceKey> {

    /**
     * @param sysUserPlaces 用户场地
     * @return 操作结果
     * @Title: insertBatch(List<SysUserPlace> sysUserPlaces)
     * @Description: TODO(批量添加用户场地)
     * @author Jerry Chan
     * @date 2017/1/10 16:54
     */
    int insertBatch(List<SysUserPlace> sysUserPlaces);

    /**
     * @Title: deleteByUserID(Long userid)
     * @Description: TODO( 根据用户ID删除用户场地信息 )
     * @author Jerry Chan
     * @date 2017/1/10 17:06
     * @return
     */
    int deleteByUserID(Long userid);

}